<?php




require 'database.php';

$base=new Db;



$posts=$_POST["row"];

$ret=[
    "code"=>200,
    "msg"=>'success',
    "data"=>"",
    "url"=>null,
    "wait"=>3
];

$__r__=$base->doSql('insert into hkcms_category set type="'.$posts["type"].'",model_id="'.$posts["model_id"].'",parent_id="'.$posts["parent_id"].'",title="'.$posts["title"].'",name="'.$posts["name"].'",url="'.$posts["url"].'",category_tpl="'.$posts["category_tpl"].'",list_tpl="'.$posts["list_tpl"].'",show_tpl="'.$posts["show_tpl"].'",weigh="'.$posts["weigh"].'",ismenu="'.$posts["ismenu"].'",seo_title="'.$posts["seo_title"].'",seo_keywords="'.$posts["seo_keywords"].'",seo_desc="'.$posts["seo_desc"].'",image="'.$posts["image"].'",num="'.$posts["num"].'",target="'.$posts["target"].'",status="'.$posts["status"].'",update_time="'.$posts["update_time"].'",create_time="'.$posts["create_time"].'",lang="zh-cn"');

if($__r__){
    return json($ret);
}